//
//  BMActionSheet.h
//  bigmama
//
//  Created by huyuchen on 2017/8/23.
//  Copyright © 2017年 盛成文化. All rights reserved.
//

#import <UIKit/UIKit.h>

typedef NS_ENUM(NSInteger,BMActionSheetStyle){
    BMActionSheetStyleNormal = 0,   //普通
    BMActionSheetStyleTitle,        //标题
    BMActionSheetStyleImageAndTitle,//图片和标题
    BMActionSheetStyleImage         //图片
};

typedef void(^ButtonClickBlock)(NSInteger index);

@interface BMActionSheet : UIView

/**
 显示ActionSheet

 @param style               样式
 @param contentArray        内容选项
 @param imageArray          图片
 @param specialIndex        高亮下标
 @param title               标题
 @param configuration       配置view
 @param clickButtonIndex    选择下标回调
 */
+ (void)showActionSheetWithStyle:(BMActionSheetStyle)style
                    contentArray:(NSArray<NSString *> *)contentArray
                      imageArray:(NSArray<UIImage *> *)imageArray
                    specialIndex:(NSInteger)specialIndex
                           title:(NSString *)title
                   configuration:(void(^)(BMActionSheet *view))configuration
                clickButtonIndex:(ButtonClickBlock)clickButtonIndex;

+ (void)showDeleteActionSheetWithTitle:(NSString *)title configuration:(void(^)(BMActionSheet *view))configuration clickBUttonIndex:(ButtonClickBlock)clickButtonIndex;

/**
 隐藏ActionSheet
 */
- (void)dismissActionSheet;

@end
